<style>
    .bjui-pageContent{
        margin: 0 auto;
    }
</style>
<div class="bjui-pageContent">
    <form method="post" action="${ctxPath}/system/cms/template/save" id="j_model_form" data-toggle="validate" data-autorefresh="true" data-alertmsg="false">
        <span style="font-size: 14px; padding: 3px;font-weight: 300"> 模板名称： </span>
        <input type="text" class="input-nm" name="fileName" value="${templateFile.fileName!}" readonly size="50" data-rule="required;length(1~128)"><br><br>
        <span style="font-size: 14px; padding: 3px;font-weight: 300"> 当前目录： </span>
        <input type="text" id="currentPath" name="parentPath" value="${templateFile.parentPath!}" size="50" data-rule="required;length(1~128)">
        <br><br><br>
        <input TYPE="hidden" NAME="filePath" value="${templateFile.filePath!}">
        <div class="form-group">
            <textarea style="height:680px; width:100%;" name="content"  data-rule="required;">${templateFile.content!}</textarea>
        </div>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <a href="${ctxPath}/system/cms/template/delete?filePath=${templateFile.filePath!}" data-toggle="doajax" title="删除模板" data-confirm-msg="确定要删除模板吗？" class="btn btn-red"> 删除模板 </a>
        </li>
        <li>
            <a href="${ctxPath}/system/cms/template/template_file_input?filePath=${templateFile.filePath!}" class="btn btn-green"
               data-icon="plus" data-toggle="dialog" data-maxable="false"
               data-resizable="true" data-width="500" data-height="330" data-id="model-add-tab" data-title="新增模板">新增模板</a>
        </li>
        <li>
            <button type="submit" class="btn btn-blue" data-icon="save">保存修改</button>
        </li>
    </ul>
</div>